{template 'yellowpage_header.html','yellowpage'}

<div class="container">
	<div class="aside">
    	
        {if $m_user}
        <div class="mod">
            <div class="head">热点导航</div>
            <div class="body">
                <ul>
                {loop $m_user $ms}
                  <li><a href="{$ms[url]}">{$ms[catname]}</a></li>
                {/loop}
                </ul>
            </div>
        </div>
        {/if}
        
        
        <div class="mod">
            <div class="head">最新消息</div>
            <div class="body">
                <ol>
                {get sql="SELECT * FROM `table_yellowpage_news` WHERE `userid`='$userid' AND status=99 ORDER BY id DESC" rows="10"}
                <li><a href="{url($r[url])}" title="{$r[title]}">{str_cut($r[title],28,'')}</a></li>
                {/get}
              </ol>
            </div>
        </div>
        
        <div class="mod">
            <div class="head">站内搜索</div>
            <div class="body">
                <form class="box" action="{$M['url']}web/query.php">
                  <input type="text" name="q" size="16"/><input name="search" type="submit" id="search" value="搜索"/><br/>
                  <input type="radio" name="type" checked="checked" value="product"/>商品<input type="radio" name="type" value="buy"/>商机<input value="news" type="radio" name="type"/>新闻<input type="hidden" value="search" name="action" /><input name="userid" value="{$userid}" type="hidden" />
                </form>
            </div>
        </div>
            
    </div>
    <div class="main">
    	
        <table  width="746px"cellpadding="0" cellspacing="1" class="table_list">
 
          <tr>
        <th width="130" class="certificate1">图片</th>
        <th width="200" class="certificate2">证书名称</th>
        <th width="200" class="certificate2">发证机构</th>
        <th width="108" class="certificate3">生效时间</th>
        <th width="108" class="certificate3">截止日期</th>
          </tr>
        {get sql="SELECT * FROM `table_yellowpage_cert` WHERE `userid`='$userid' AND status=1" rows="50"}
        <tr>
        <td width="130" align="center" valign="middle" bgcolor="#FFFFFF">
        <a href="{$r[thumb]}"><img border="0" src="{$r[thumb]}" width="120"/></a></td>
        <td width="200" bgcolor="#FFFFFF">{$r[name]}</td>
        <td width="200" bgcolor="#FFFFFF">{$r[organization]}</td>
        <td width="108" bgcolor="#FFFFFF">{$r[effecttime]}</td>
        <td width="108" bgcolor="#FFFFFF">{$r[endtime]}</td>
        </tr>
        {/get}
        </table>
        
        
    </div>
    <p class="clear"></p>
</div>

{template 'yellowpage_footer.html','yellowpage'} 